package com.ruoyi.webConfig.service;

import com.ruoyi.webConfig.mapper.WebConfigMapper;
import com.ruoyi.webConfig.model.SysWebConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WebConfigServiceImpl  {
    @Autowired
    private WebConfigMapper webConfigMapper;
    public SysWebConfig getWebConfig() {
        return webConfigMapper.getWebConfig();
    }

    public void updateWebConfig(SysWebConfig sysWebConfig) {
         webConfigMapper.updateWebConfig(sysWebConfig);
    }

    public void updateLogo(String logo) {
        webConfigMapper.updateLogo(logo);
    }

    public void updateAuthorAvatar(String logo) {
        webConfigMapper.updateAuthorAvatar(logo);
    }

    public void updateCommentSwitch(Integer openComment) {
        webConfigMapper.updateCommentSwitchApi(openComment);
    }

    public void updateTourAvatar(String tour) {
        webConfigMapper.updateTourAvatar(tour);
    }
}
